<script setup>
import Root from './pages/Root.vue'
import loginPage from './pages/loginPage.vue'
import { zhCn } from 'element-plus/es/locales.mjs';
import useBaseStore from '@/stores/baseStore.js'

const baseStore = useBaseStore()

</script>

<template>
       <el-config-provider :locale="zhCn">
              <loginPage v-if="!baseStore.isLogin" />
              <Root v-else-if="baseStore.isLogin" />
       </el-config-provider>
</template>